//
//  TabViewController.m
//  MyFramework
//
//  Created by 余洋 on 2018/10/12.
//  Copyright © 2018 余洋. All rights reserved.
//

#import "TabViewController.h"
#import "TabView.h"

@interface TabViewController ()

@property (weak, nonatomic) IBOutlet TabView *menuView;

@end

@implementation TabViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *arr = [[NSArray alloc]initWithObjects:@"全部",@"已完成",@"待付款",@"待收货",@"待评价", nil];
    self.menuView.titleArray = arr;
    self.menuView.selectBlock = ^(NSInteger selectIndex) {
        NSLog(@"点击了第%ld个",selectIndex);
    };
}

@end
